#include "Entity.h"

//Static member initialization
int Entity::m_nextID = 0;

Entity::Entity()
{
	//Set Icon/Position/Drawing data
	m_icon = 1;		//TODO:  Make this not hard coded.
	m_color = DEFAULT_COLOR;
	m_Location.setX(0); m_Location.setY(0);
	m_redrawEntity = true;
	//Map data will be initalized later, so just keep it clean and set to null for now
	m_Map = NULL;
	//Set ID and update the static member
	m_ID = m_nextID;
	m_nextID++;
}

Entity::~Entity()
{

}

//Game Loop Methods
void Entity::handleInput(int a_input)
{

}

void Entity::update()
{

}

void Entity::draw()
{

}

void Entity::redraw()
{

}

//Other Methods
void Entity::setMapData(Map * a_Map)
{
	if (a_Map != NULL)
		m_Map = a_Map;
}
void Entity::place(Location a_Location)
{

}

void Entity::spawn()
{

}